package com.painarthur.rbac.action;

import java.util.List;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.test.bean.Student;
import com.test.service.StudentService;

@ParentPackage("default")
@Namespace(value="/")
@Result(location = "/student/MyJsp.jsp")
@Results({  
    @Result(name="jobSuccess", location="/job/jobshow.jsp"),
    @Result(name="success3",  location="/welcome.jsp")  
    }) 
public class ResourceTree extends BaseAction{
private static final long serialVersionUID = 1L;
	
	@Resource
	Student student;
	@Resource(name = "studentServiceImpl")
	StudentService studentService;
	
	private List<Student> studentList;
	
	@Action(value="getAllStudent")
	public String getAllStudent(){
		return null;
	}
}
